`timescale 1 ns / 100 ps

module Bit16ToBit8_tb;

	reg  [15:0] cnt;
	reg         mode;
	wire [7:0]  lsbbinaryout;
	wire [7:0]  msbbinaryout;

	Bit16ToBit8 dut (
		cnt,
		mode,
		lsbbinaryout,
		msbbinaryout
	);

	initial begin
		cnt  = 0;
		mode = 0;

		#10 cnt = 9999;
		#10 cnt = 1562;
		#10 cnt = 850;
		#10 mode = 1;
		#10 cnt = 120;
		#10 cnt = 50;
		#10 cnt = 60;
		#10 cnt = 4;

		#10 $stop;
	end

endmodule
